<?php require VIEW_ROOT.'/common/header.php'?>

<div class="info">
	共有 <b><?php echo $count?></b> 条。
	<a href="./?m=tools&a=contact_import">导入联系人</a>
	<a href="./?m=tools&a=contact_truncate">清空联系人</a>
</div>

<table>
	<tr>
		<th width="200">姓名</th>
		<th width="200">电话</th>
		<th>备注</th>
	</tr>
	<?php foreach ($res as $row) {?>
		<tr>
			<td style="text-align:right;"><?php echo $row['name']?></td>
			<td style="text-align:left;"><?php echo $row['phone']?></td>
			<td class="frm"><?php echo $row['note']?></td>
		</tr>
	<?php }?>
</table>

<?php require VIEW_ROOT.'/common/footer.php'?>